package cn.ad.server.web.spring.model.bes.api;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * Created by zooy on 17-2-8.
 */
public class BESAPIResponse {

    private String requestId;

    private String adId;

    private int resultCode;

    private String resultMsg;

    private String adKey;

    private int expirationTime;

    private List<Ads> ads;

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public String getAdId() {
        return adId;
    }

    public void setAdId(String adId) {
        this.adId = adId;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultMsg() {
        return resultMsg;
    }

    public void setResultMsg(String resultMsg) {
        this.resultMsg = resultMsg;
    }

    public String getAdKey() {
        return adKey;
    }

    public void setAdKey(String adKey) {
        this.adKey = adKey;
    }

    public int getExpirationTime() {
        return expirationTime;
    }

    public void setExpirationTime(int expirationTime) {
        this.expirationTime = expirationTime;
    }

    public List<Ads> getAds() {
        return ads;
    }

    public void setAds(List<Ads> ads) {
        this.ads = ads;
    }

    public static class Ads {

        @JsonProperty("ad_title")
        private String adTitle;

        @JsonProperty("ad_desc")
        private String[] adDesc;

        @JsonProperty("ad_imgs")
        private String[] adImgs;

        @JsonProperty("ad_width")
        private int adWidth;

        @JsonProperty("ad_height")
        private int adHeight;

        @JsonProperty("ad_action_type")
        private int adActionType;

        @JsonProperty("ad_creative_type")
        private int adCreativeType;

        @JsonProperty("ad_click_url")
        private String adClickUrl;

        @JsonProperty("ad_app_package")
        private String adAppPackage;

        @JsonProperty("ad_app_size")
        private int adAppSize;

        @JsonProperty("ad_video_url")
        private String adVideoUrl;

        @JsonProperty("ad_video_duration")
        private int adVideoDuration;

        @JsonProperty("ad_notice_urls")
        private String[] adNoticeUrls;

        public String getAdTitle() {
            return adTitle;
        }

        public void setAdTitle(String adTitle) {
            this.adTitle = adTitle;
        }

        public String[] getAdDesc() {
            return adDesc;
        }

        public void setAdDesc(String[] adDesc) {
            this.adDesc = adDesc;
        }

        public String[] getAdImgs() {
            return adImgs;
        }

        public void setAdImgs(String[] adImgs) {
            this.adImgs = adImgs;
        }

        public int getAdWidth() {
            return adWidth;
        }

        public void setAdWidth(int adWidth) {
            this.adWidth = adWidth;
        }

        public int getAdHeight() {
            return adHeight;
        }

        public void setAdHeight(int adHeight) {
            this.adHeight = adHeight;
        }

        public int getAdActionType() {
            return adActionType;
        }

        public void setAdActionType(int adActionType) {
            this.adActionType = adActionType;
        }

        public int getAdCreativeType() {
            return adCreativeType;
        }

        public void setAdCreativeType(int adCreativeType) {
            this.adCreativeType = adCreativeType;
        }

        public String getAdClickUrl() {
            return adClickUrl;
        }

        public void setAdClickUrl(String adClickUrl) {
            this.adClickUrl = adClickUrl;
        }

        public String getAdAppPackage() {
            return adAppPackage;
        }

        public void setAdAppPackage(String adAppPackage) {
            this.adAppPackage = adAppPackage;
        }

        public int getAdAppSize() {
            return adAppSize;
        }

        public void setAdAppSize(int adAppSize) {
            this.adAppSize = adAppSize;
        }

        public String getAdVideoUrl() {
            return adVideoUrl;
        }

        public void setAdVideoUrl(String adVideoUrl) {
            this.adVideoUrl = adVideoUrl;
        }

        public int getAdVideoDuration() {
            return adVideoDuration;
        }

        public void setAdVideoDuration(int adVideoDuration) {
            this.adVideoDuration = adVideoDuration;
        }

        public String[] getAdNoticeUrls() {
            return adNoticeUrls;
        }

        public void setAdNoticeUrls(String[] adNoticeUrls) {
            this.adNoticeUrls = adNoticeUrls;
        }
    }

}
